package com.fcscs.cservice.ws.client.commonservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.commonservice.GetResourceViewRequest;
import com.fcscs.cservice.ws.schema.commonservice.GetResourceViewResponse;

public class GetResourceViewClient extends WebServiceGatewaySupport {

		private static final Logger LOG = Logger.getLogger(GetResourceViewClient.class);

		public GetResourceViewResponse getResourceView(GetResourceViewRequest req) {
			GetResourceViewResponse resp = (GetResourceViewResponse) getWebServiceTemplate().marshalSendAndReceive(req);
			LOG.info("----------got resources: " + resp.getResourceViewList());
			return resp;
		}
}
